package model

import "gorm.io/gorm"

type Log struct {
	gorm.Model
	NewRabbitMQSimple string `gorm:"type:varchar(30)" json:"newRabbitMQSimple"`
	SmsCode           string `gorm:"type:varchar(30)" json:"smsCode"`
}

func (l *Log) AddLog(db *gorm.DB) error {
	return db.Create(&l).Error
}
